home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1994 November: Tool Chest / Dev.CD Nov 94.toast / Tool Chest / !Interfaces / Universal Interfaces 2.0a1 / PInterfaces / Script.p < prev    next >
Encoding:
Text File  |  1994-07-17  |  36.1 KB  |  915 lines  |  [TEXT/MPS ]

  1. {
  2.      File:        Script.p
  3.  
  4.      Copyright:    © 1984-1994 by Apple Computer, Inc.
  5.                  All rights reserved.
  6.  
  7.      Version:    Universal Interfaces 2.0a1.  ETO #15, MPW prerelease.  Sunday, July 17, 1994. 
  8.  
  9.      Bugs?:        If you find a problem with this file, send the file and version
  10.                  information (from above) and the problem description to:
  11.  
  12.                      Internet:    apple.bugs@applelink.apple.com
  13.                      AppleLink:    APPLE.BUGS
  14.  
  15. }
  16.  
  17. {$IFC UNDEFINED UsingIncludes}
  18. {$SETC UsingIncludes := 0}
  19. {$ENDC}
  20.  
  21. {$IFC NOT UsingIncludes}
  22.  UNIT Script;
  23.  INTERFACE
  24. {$ENDC}
  25.  
  26. {$IFC UNDEFINED __SCRIPT__}
  27. {$SETC __SCRIPT__ := 1}
  28.  
  29. {$I+}
  30. {$SETC ScriptIncludes := UsingIncludes}
  31. {$SETC UsingIncludes := 1}
  32.  
  33.  
  34. {$IFC UNDEFINED __TYPES__}
  35. {$I Types.p}
  36. {$ENDC}
  37. {    ConditionalMacros.p                                            }
  38.  
  39. {$IFC UNDEFINED __QUICKDRAW__}
  40. {$I Quickdraw.p}
  41. {$ENDC}
  42. {    MixedMode.p                                                    }
  43. {    QuickdrawText.p                                                }
  44.  
  45. {$IFC UNDEFINED __INTLRESOURCES__}
  46. {$I IntlResources.p}
  47. {$ENDC}
  48.  
  49. {$IFC UNDEFINED __EVENTS__}
  50. {$I Events.p}
  51. {$ENDC}
  52. {    OSUtils.p                                                    }
  53.  
  54. {$PUSH}
  55. {$ALIGN MAC68K}
  56. {$LibExport+}
  57.  
  58. CONST
  59. { Script System constants }
  60.     smSystemScript                = -1;                            {designates system script.}
  61.     smCurrentScript                = -2;                            {designates current font script.}
  62.     smAllScripts                = -3;                            {designates any script    }
  63.     smRoman                        = 0;                            {Roman}
  64.     smJapanese                    = 1;                            {Japanese}
  65.     smTradChinese                = 2;                            {Traditional Chinese}
  66.     smKorean                    = 3;                            {Korean}
  67.     smArabic                    = 4;                            {Arabic}
  68.     smHebrew                    = 5;                            {Hebrew}
  69.     smGreek                        = 6;                            {Greek}
  70.     smCyrillic                    = 7;                            {Cyrillic}
  71.     smRSymbol                    = 8;                            {Right-left symbol}
  72.     smDevanagari                = 9;                            {Devanagari}
  73.     smGurmukhi                    = 10;                            {Gurmukhi}
  74.     smGujarati                    = 11;                            {Gujarati}
  75.     smOriya                        = 12;                            {Oriya}
  76.     smBengali                    = 13;                            {Bengali}
  77.     smTamil                        = 14;                            {Tamil}
  78.     smTelugu                    = 15;                            {Telugu}
  79.     smKannada                    = 16;                            {Kannada/Kanarese}
  80.     smMalayalam                    = 17;                            {Malayalam}
  81.  
  82.     smSinhalese                    = 18;                            {Sinhalese}
  83.     smBurmese                    = 19;                            {Burmese}
  84.     smKhmer                        = 20;                            {Khmer/Cambodian}
  85.     smThai                        = 21;                            {Thai}
  86.     smLaotian                    = 22;                            {Laotian}
  87.     smGeorgian                    = 23;                            {Georgian}
  88.     smArmenian                    = 24;                            {Armenian}
  89.     smSimpChinese                = 25;                            {Simplified Chinese}
  90.     smTibetan                    = 26;                            {Tibetan}
  91.     smMongolian                    = 27;                            {Mongolian}
  92.     smGeez                        = 28;                            {Geez/Ethiopic}
  93.     smEthiopic                    = 28;                            {Synonym for smGeez}
  94.     smEastEurRoman                = 29;                            {Synonym for smSlavic}
  95.     smVietnamese                = 30;                            {Vietnamese}
  96.     smExtArabic                    = 31;                            {extended Arabic}
  97.     smUninterp                    = 32;                            {uninterpreted symbols, e.g. palette symbols}
  98.     smKlingon                    = 32;                            {Klingon}
  99. {Obsolete names for script systems (kept for backward compatibility)}
  100.     smChinese                    = 2;                            {(use smTradChinese or smSimpChinese)}
  101.     smRussian                    = 7;                            {(old name for smCyrillic)}
  102. { smMaldivian = 25;         (no more smMaldivian!)}
  103.     smAmharic                    = 28;                            {(old name for smGeez)}
  104.     smSlavic                    = 29;                            {(old name for smEastEurRoman)}
  105.  
  106.     smSindhi                    = 31;                            {(old name for smExtArabic)}
  107. { Language Codes }
  108.     langEnglish                    = 0;                            { smRoman script }
  109.     langFrench                    = 1;                            { smRoman script }
  110.     langGerman                    = 2;                            { smRoman script }
  111.     langItalian                    = 3;                            { smRoman script }
  112.     langDutch                    = 4;                            { smRoman script }
  113.     langSwedish                    = 5;                            { smRoman script }
  114.     langSpanish                    = 6;                            { smRoman script }
  115.     langDanish                    = 7;                            { smRoman script }
  116.     langPortuguese                = 8;                            { smRoman script }
  117.     langNorwegian                = 9;                            { smRoman script }
  118.     langHebrew                    = 10;                            { smHebrew script }
  119.     langJapanese                = 11;                            { smJapanese script }
  120.     langArabic                    = 12;                            { smArabic script }
  121.     langFinnish                    = 13;                            { smRoman script }
  122.     langGreek                    = 14;                            { smGreek script }
  123.     langIcelandic                = 15;                            { extended Roman script }
  124.     langMaltese                    = 16;                            { extended Roman script }
  125.     langTurkish                    = 17;                            { extended Roman script }
  126.     langCroatian                = 18;                            { Serbo-Croatian in extended Roman script }
  127.     langTradChinese                = 19;                            { Chinese in traditional characters }
  128.  
  129.     langUrdu                    = 20;                            { smArabic script }
  130.     langHindi                    = 21;                            { smDevanagari script }
  131.     langThai                    = 22;                            { smThai script }
  132.     langKorean                    = 23;                            { smKorean script }
  133.     langLithuanian                = 24;                            { smEastEurRoman script }
  134.     langPolish                    = 25;                            { smEastEurRoman script }
  135.     langHungarian                = 26;                            { smEastEurRoman script }
  136.     langEstonian                = 27;                            { smEastEurRoman script }
  137.     langLettish                    = 28;                            { smEastEurRoman script }
  138.     langLatvian                    = 28;                            { Synonym for langLettish }
  139.     langSaamisk                    = 29;                            { ext. Roman script, lang. of the Sami/Lapp people of Scand. }
  140.     langLappish                    = 29;                            { Synonym for langSaamisk }
  141.     langFaeroese                = 30;                            { smRoman script }
  142.     langFarsi                    = 31;                            { smArabic script }
  143.     langPersian                    = 31;                            { Synonym for langFarsi }
  144.     langRussian                    = 32;                            { smCyrillic script }
  145.     langSimpChinese                = 33;                            { Chinese in simplified characters }
  146.     langFlemish                    = 34;                            { smRoman script }
  147.     langIrish                    = 35;                            { smRoman script }
  148.     langAlbanian                = 36;                            { smRoman script }
  149.  
  150.     langRomanian                = 37;                            { smEastEurRoman script }
  151.     langCzech                    = 38;                            { smEastEurRoman script }
  152.     langSlovak                    = 39;                            { smEastEurRoman script }
  153.     langSlovenian                = 40;                            { smEastEurRoman script }
  154.     langYiddish                    = 41;                            { smHebrew script }
  155.     langSerbian                    = 42;                            { Serbo-Croatian in smCyrillic script }
  156.     langMacedonian                = 43;                            { smCyrillic script }
  157.     langBulgarian                = 44;                            { smCyrillic script }
  158.     langUkrainian                = 45;                            { smCyrillic script }
  159.     langByelorussian            = 46;                            { smCyrillic script }
  160.     langUzbek                    = 47;                            { smCyrillic script }
  161.     langKazakh                    = 48;                            { smCyrillic script }
  162.     langAzerbaijani                = 49;                            { Azerbaijani in smCyrillic script (USSR) }
  163.     langAzerbaijanAr            = 50;                            { Azerbaijani in smArabic script (Iran) }
  164.     langArmenian                = 51;                            { smArmenian script }
  165.     langGeorgian                = 52;                            { smGeorgian script }
  166.     langMoldavian                = 53;                            { smCyrillic script }
  167.     langKirghiz                    = 54;                            { smCyrillic script }
  168.     langTajiki                    = 55;                            { smCyrillic script }
  169.     langTurkmen                    = 56;                            { smCyrillic script }
  170.  
  171.     langMongolian                = 57;                            { Mongolian in smMongolian script }
  172.     langMongolianCyr            = 58;                            { Mongolian in smCyrillic script }
  173.     langPashto                    = 59;                            { smArabic script }
  174.     langKurdish                    = 60;                            { smArabic script }
  175.     langKashmiri                = 61;                            { smArabic script }
  176.     langSindhi                    = 62;                            { smExtArabic script }
  177.     langTibetan                    = 63;                            { smTibetan script }
  178.     langNepali                    = 64;                            { smDevanagari script }
  179.     langSanskrit                = 65;                            { smDevanagari script }
  180.     langMarathi                    = 66;                            { smDevanagari script }
  181.     langBengali                    = 67;                            { smBengali script }
  182.     langAssamese                = 68;                            { smBengali script }
  183.     langGujarati                = 69;                            { smGujarati script }
  184.     langPunjabi                    = 70;                            { smGurmukhi script }
  185.     langOriya                    = 71;                            { smOriya script }
  186.     langMalayalam                = 72;                            { smMalayalam script }
  187.     langKannada                    = 73;                            { smKannada script }
  188.     langTamil                    = 74;                            { smTamil script }
  189.     langTelugu                    = 75;                            { smTelugu script }
  190.     langSinhalese                = 76;                            { smSinhalese script }
  191.  
  192.     langBurmese                    = 77;                            { smBurmese script }
  193.     langKhmer                    = 78;                            { smKhmer script }
  194.     langLao                        = 79;                            { smLaotian script }
  195.     langVietnamese                = 80;                            { smVietnamese script }
  196.     langIndonesian                = 81;                            { smRoman script }
  197.     langTagalog                    = 82;                            { smRoman script }
  198.     langMalayRoman                = 83;                            { Malay in smRoman script }
  199.     langMalayArabic                = 84;                            { Malay in smArabic script }
  200.     langAmharic                    = 85;                            { smEthiopic script }
  201.     langTigrinya                = 86;                            { smEthiopic script }
  202.     langGalla                    = 87;                            { smEthiopic script }
  203.     langOromo                    = 87;                            { Synonym for langGalla }
  204.     langSomali                    = 88;                            { smRoman script }
  205.     langSwahili                    = 89;                            { smRoman script }
  206.     langRuanda                    = 90;                            { smRoman script }
  207.     langRundi                    = 91;                            { smRoman script }
  208.     langChewa                    = 92;                            { smRoman script }
  209.     langMalagasy                = 93;                            { smRoman script }
  210.     langEsperanto                = 94;                            { extended Roman script }
  211.     langWelsh                    = 128;                            { smRoman script }
  212.  
  213.     langBasque                    = 129;                            { smRoman script }
  214.     langCatalan                    = 130;                            { smRoman script }
  215.     langLatin                    = 131;                            { smRoman script }
  216.     langQuechua                    = 132;                            { smRoman script }
  217.     langGuarani                    = 133;                            { smRoman script }
  218.     langAymara                    = 134;                            { smRoman script }
  219.     langTatar                    = 135;                            { smCyrillic script }
  220.     langUighur                    = 136;                            { smArabic script }
  221.     langDzongkha                = 137;                            { (lang of Bhutan) smTibetan script }
  222.     langJavaneseRom                = 138;                            { Javanese in smRoman script }
  223.     langSundaneseRom            = 139;                            { Sundanese in smRoman script }
  224. { Obsolete names, kept for backward compatibility }
  225.     langPortugese                = 8;                            { old misspelled version, kept for compatibility }
  226.     langMalta                    = 16;                            { old misspelled version, kept for compatibility }
  227.     langYugoslavian                = 18;                            { (use langCroatian, langSerbian, etc.) }
  228.     langChinese                    = 19;                            { (use langTradChinese or langSimpChinese) }
  229.     langLapponian                = 29;                            { Synonym for langSaamisk, not correct name }
  230.  
  231. { Regional version codes }
  232.     verUS                        = 0;
  233.     verFrance                    = 1;
  234.     verBritain                    = 2;
  235.     verGermany                    = 3;
  236.     verItaly                    = 4;
  237.     verNetherlands                = 5;
  238.     verFrBelgiumLux                = 6;                            { French for Belgium & Luxembourg }
  239.     verSweden                    = 7;
  240.     verSpain                    = 8;
  241.     verDenmark                    = 9;
  242.     verPortugal                    = 10;
  243.     verFrCanada                    = 11;
  244.     verNorway                    = 12;
  245.  
  246.     verIsrael                    = 13;
  247.     verJapan                    = 14;
  248.     verAustralia                = 15;
  249.     verArabic                    = 16;                            { synonym for verArabia }
  250.     verFinland                    = 17;
  251.     verFrSwiss                    = 18;                            { French Swiss }
  252.     verGrSwiss                    = 19;                            { German Swiss }
  253.     verGreece                    = 20;
  254.     verIceland                    = 21;
  255.     verMalta                    = 22;
  256.     verCyprus                    = 23;
  257.     verTurkey                    = 24;
  258.     verYugoCroatian                = 25;                            { Croatian system for Yugoslavia }
  259.     verIndiaHindi                = 33;                            { Hindi system for India }
  260.     verPakistan                    = 34;
  261.     verLithuania                = 41;
  262.     verPoland                    = 42;
  263.     verHungary                    = 43;
  264.     verEstonia                    = 44;
  265.     verLatvia                    = 45;
  266.  
  267.     verLapland                    = 46;
  268.     verFaeroeIsl                = 47;
  269.     verIran                        = 48;
  270.     verRussia                    = 49;
  271.     verIreland                    = 50;                            { English-language version for Ireland }
  272.     verKorea                    = 51;
  273.     verChina                    = 52;
  274.     verTaiwan                    = 53;
  275.     verThailand                    = 54;
  276.  
  277.     minCountry                    = verUS;
  278.     maxCountry                    = verThailand;
  279.  
  280. { Obsolete region code names, kept for backward compatibility }
  281.     verBelgiumLux                = 6;                            { (use verFrBelgiumLux instead, less ambiguous) }
  282.     verArabia                    = 16;
  283.     verYugoslavia                = 25;                            { (use verYugoCroatian instead, less ambiguous) }
  284.     verIndia                    = 33;                            { (use verIndiaHindi instead, less ambiguous) }
  285. { Calendar Codes }
  286.     calGregorian                = 0;
  287.     calArabicCivil                = 1;
  288.     calArabicLunar                = 2;
  289.     calJapanese                    = 3;
  290.     calJewish                    = 4;
  291.     calCoptic                    = 5;
  292.     calPersian                    = 6;
  293. { Integer Format Codes }
  294.     intWestern                    = 0;
  295.     intArabic                    = 1;
  296.     intRoman                    = 2;
  297.     intJapanese                    = 3;
  298.     intEuropean                    = 4;
  299.     intOutputMask                = $8000;
  300. { CharByte byte types }
  301.     smSingleByte                = 0;
  302.     smFirstByte                    = -1;
  303.     smLastByte                    = 1;
  304.     smMiddleByte                = 2;
  305. { CharType field masks }
  306.     smcTypeMask                    = $000F;
  307.     smcReserved                    = $00F0;
  308.  
  309.     smcClassMask                = $0F00;
  310.     smcOrientationMask            = $1000;                        {two-byte script glyph orientation}
  311.     smcRightMask                = $2000;
  312.     smcUpperMask                = $4000;
  313.     smcDoubleMask                = $8000;
  314. { Basic CharType character types }
  315.     smCharPunct                    = $0000;
  316.     smCharAscii                    = $0001;
  317.     smCharEuro                    = $0007;
  318.     smCharExtAscii                = $0007;                        { More correct synonym for smCharEuro }
  319. { Additional CharType character types for script systems }
  320.     smCharKatakana                = $0002;                        {Japanese Katakana}
  321.     smCharHiragana                = $0003;                        {Japanese Hiragana}
  322.     smCharIdeographic            = $0004;                        {Hanzi, Kanji, Hanja}
  323.     smCharTwoByteGreek            = $0005;                        {2-byte Greek in Far East systems}
  324.     smCharTwoByteRussian        = $0006;                        {2-byte Cyrillic in Far East systems}
  325.     smCharBidirect                = $0008;                        {Arabic/Hebrew}
  326.     smCharContextualLR            = $0009;                        {Contextual left-right: Thai, Indic scripts}
  327.     smCharNonContextualLR        = $000A;                        {Non-contextual left-right: Cyrillic, Greek}
  328.     smCharHangul                = $000C;                        {Korean Hangul}
  329.     smCharJamo                    = $000D;                        {Korean Jamo}
  330.     smCharBopomofo                = $000E;                        {Chinese Bopomofo}
  331. { old names for some of above, for backward compatibility }
  332.     smCharFISKana                = $0002;                        {Katakana}
  333.     smCharFISGana                = $0003;                        {Hiragana}
  334.     smCharFISIdeo                = $0004;                        {Hanzi, Kanji, Hanja}
  335.  
  336.     smCharFISGreek                = $0005;                        {2-byte Greek in Far East systems}
  337.     smCharFISRussian            = $0006;                        {2-byte Cyrillic in Far East systems}
  338. { CharType classes for punctuation (smCharPunct) }
  339.     smPunctNormal                = $0000;
  340.     smPunctNumber                = $0100;
  341.     smPunctSymbol                = $0200;
  342.     smPunctBlank                = $0300;
  343. { Additional CharType classes for punctuation in two-byte systems }
  344.     smPunctRepeat                = $0400;                        { repeat marker }
  345.     smPunctGraphic                = $0500;                        { line graphics }
  346. { CharType Katakana and Hiragana classes for two-byte systems }
  347.     smKanaSmall                    = $0100;                        {small kana character}
  348.     smKanaHardOK                = $0200;                        {can have dakuten}
  349.     smKanaSoftOK                = $0300;                        {can have dakuten or han-dakuten}
  350. { CharType Ideographic classes for two-byte systems }
  351.     smIdeographicLevel1            = $0000;                        {level 1 char}
  352.     smIdeographicLevel2            = $0100;                        {level 2 char}
  353.     smIdeographicUser            = $0200;                        {user char}
  354. { old names for above, for backward compatibility }
  355.     smFISClassLvl1                = $0000;                        {level 1 char}
  356.     smFISClassLvl2                = $0100;                        {level 2 char}
  357.     smFISClassUser                = $0200;                        {user char}
  358. { CharType Jamo classes for Korean systems }
  359.     smJamoJaeum                    = $0000;                        {simple consonant char}
  360.     smJamoBogJaeum                = $0100;                        {complex consonant char}
  361.     smJamoMoeum                    = $0200;                        {simple vowel char}
  362.  
  363.     smJamoBogMoeum                = $0300;                        {complex vowel char}
  364. { CharType glyph orientation for two-byte systems }
  365.     smCharHorizontal            = $0000;                        { horizontal character form, or for both }
  366.     smCharVertical                = $1000;                        { vertical character form }
  367. { CharType directions }
  368.     smCharLeft                    = $0000;
  369.     smCharRight                    = $2000;
  370. { CharType case modifers }
  371.     smCharLower                    = $0000;
  372.     smCharUpper                    = $4000;
  373. { CharType character size modifiers (1 or multiple bytes). }
  374.     smChar1byte                    = $0000;
  375.     smChar2byte                    = $8000;
  376. { TransliterateText target types for Roman }
  377.     smTransAscii                = 0;                            {convert to ASCII}
  378.     smTransNative                = 1;                            {convert to font script}
  379.     smTransCase                    = $FE;                            {convert case for all text}
  380.     smTransSystem                = $FF;                            {convert to system script}
  381. { TransliterateText target types for two-byte scripts }
  382.     smTransAscii1                = 2;                            {1-byte Roman}
  383.     smTransAscii2                = 3;                            {2-byte Roman}
  384.     smTransKana1                = 4;                            {1-byte Japanese Katakana}
  385.     smTransKana2                = 5;                            {2-byte Japanese Katakana}
  386.  
  387.     smTransGana2                = 7;                            {2-byte Japanese Hiragana (no 1-byte Hiragana)}
  388.     smTransHangul2                = 8;                            {2-byte Korean Hangul}
  389.     smTransJamo2                = 9;                            {2-byte Korean Jamo}
  390.     smTransBopomofo2            = 10;                            {2-byte Chinese Bopomofo}
  391. { TransliterateText target modifiers }
  392.     smTransLower                = $4000;                        {target becomes lowercase}
  393.     smTransUpper                = $8000;                        {target becomes uppercase}
  394. { TransliterateText resource format numbers }
  395.     smTransRuleBaseFormat        = 1;                            {Rule based trsl resource format }
  396.     smTransHangulFormat            = 2;                            {Table based Hangul trsl resource format}
  397. { TransliterateText property flags }
  398.     smTransPreDoubleByting        = 1;                            {Convert all text to double byte before transliteration}
  399.     smTransPreLowerCasing        = 2;                            {Convert all text to lower case before transliteration}
  400. { TransliterateText source mask - general }
  401.     smMaskAll                    = $FFFFFFFF;                    {Convert all text}
  402. { TransliterateText source masks }
  403.     smMaskAscii                    = $00000001;                    {2^smTransAscii}
  404.     smMaskNative                = $00000002;                    {2^smTransNative}
  405. { TransliterateText source masks for two-byte scripts }
  406.     smMaskAscii1                = $00000004;                    {2^smTransAscii1}
  407.     smMaskAscii2                = $00000008;                    {2^smTransAscii2}
  408.     smMaskKana1                    = $00000010;                    {2^smTransKana1}
  409.     smMaskKana2                    = $00000020;                    {2^smTransKana2}
  410.     smMaskGana2                    = $00000080;                    {2^smTransGana2}
  411.     smMaskHangul2                = $00000100;                    {2^smTransHangul2}
  412.     smMaskJamo2                    = $00000200;                    {2^smTransJamo2}
  413.     smMaskBopomofo2                = $00000400;                    {2^smTransBopomofo2}
  414.  
  415. { Result values from GetScriptManagerVariable and SetScriptManagerVariable calls. }
  416.     smNotInstalled                = 0;                            {routine not available in script}
  417.     smBadVerb                    = -1;                            {Bad verb passed to a routine}
  418.     smBadScript                    = -2;                            {Bad script code passed to a routine}
  419.  
  420. { Values for script redraw flag. }
  421.     smRedrawChar                = 0;                            {Redraw character only}
  422.     smRedrawWord                = 1;                            {Redraw entire word (2-byte systems)}
  423.     smRedrawLine                = -1;                            {Redraw entire line (bidirectional systems)}
  424. { GetScriptManagerVariable and SetScriptManagerVariable verbs }
  425.     smVersion                    = 0;                            {Script Manager version number}
  426.     smMunged                    = 2;                            {Globals change count}
  427.     smEnabled                    = 4;                            {Count of enabled scripts, incl Roman}
  428.     smBidirect                    = 6;                            {At least one bidirectional script}
  429.     smFontForce                    = 8;                            {Force font flag}
  430.     smIntlForce                    = 10;                            {Force intl flag}
  431.     smForced                    = 12;                            {Script was forced to system script}
  432.     smDefault                    = 14;                            {Script was defaulted to Roman script}
  433.     smPrint                        = 16;                            {Printer action routine}
  434.     smSysScript                    = 18;                            {System script}
  435.     smLastScript                = 20;                            {Last keyboard script}
  436.     smKeyScript                    = 22;                            {Keyboard script}
  437.     smSysRef                    = 24;                            {System folder refNum}
  438.     smKeyCache                    = 26;                            {obsolete}
  439.     smKeySwap                    = 28;                            {Swapping table handle}
  440.     smGenFlags                    = 30;                            {General flags long}
  441.     smOverride                    = 32;                            {Script override flags}
  442.  
  443.     smCharPortion                = 34;                            {Ch vs SpExtra proportion}
  444. { New for System 7.0: }
  445.     smDoubleByte                = 36;                            {Flag for double-byte script installed}
  446.     smKCHRCache                    = 38;                            {Returns pointer to KCHR cache}
  447.     smRegionCode                = 40;                            {Returns current region code (verXxx)}
  448.     smKeyDisableState            = 42;                            {Returns current keyboard disable state}
  449. { GetScriptVariable and SetScriptVariable verbs.
  450. Note: Verbs private to script systems are negative, while
  451. those general across script systems are non-negative. }
  452.     smScriptVersion                = 0;                            {Script software version}
  453.     smScriptMunged                = 2;                            {Script entry changed count}
  454.     smScriptEnabled                = 4;                            {Script enabled flag}
  455.     smScriptRight                = 6;                            {Right to left flag}
  456.     smScriptJust                = 8;                            {Justification flag}
  457.     smScriptRedraw                = 10;                            {Word redraw flag}
  458.     smScriptSysFond                = 12;                            {Preferred system font}
  459.     smScriptAppFond                = 14;                            {Preferred Application font}
  460.     smScriptBundle                = 16;                            {Beginning of itlb verbs}
  461.     smScriptNumber                = 16;                            {Script itl0 id}
  462.     smScriptDate                = 18;                            {Script itl1 id}
  463.     smScriptSort                = 20;                            {Script itl2 id}
  464.     smScriptFlags                = 22;                            {flags word}
  465.     smScriptToken                = 24;                            {Script itl4 id}
  466.     smScriptEncoding            = 26;                            {id of optional itl5, if present}
  467.     smScriptLang                = 28;                            {Current language for script}
  468.  
  469.     smScriptNumDate                = 30;                            {Script Number/Date formats.}
  470.     smScriptKeys                = 32;                            {Script KCHR id}
  471.     smScriptIcon                = 34;                            {ID # of SICN or kcs#/kcs4/kcs8 suite}
  472.     smScriptPrint                = 36;                            {Script printer action routine}
  473.     smScriptTrap                = 38;                            {Trap entry pointer}
  474.     smScriptCreator                = 40;                            {Script file creator}
  475.     smScriptFile                = 42;                            {Script file name}
  476.     smScriptName                = 44;                            {Script name}
  477. { There is a hole here for old Kanji private verbs 46-76 
  478.  
  479.  New for System 7.0: }
  480.     smScriptMonoFondSize        = 78;                            {default monospace FOND (hi) & size (lo)}
  481.     smScriptPrefFondSize        = 80;                            {preferred FOND (hi) & size (lo)}
  482.     smScriptSmallFondSize        = 82;                            {default small FOND (hi) & size (lo)}
  483.     smScriptSysFondSize            = 84;                            {default system FOND (hi) & size (lo)}
  484.     smScriptAppFondSize            = 86;                            {default app FOND (hi) & size (lo)}
  485.     smScriptHelpFondSize        = 88;                            {default Help Mgr FOND (hi) & size (lo)}
  486.     smScriptValidStyles            = 90;                            {mask of valid styles for script}
  487.     smScriptAliasStyle            = 92;                            {style (set) to use for aliases}
  488. { Special script code values for International Utilities }
  489.     iuSystemScript                = -1;                            { <obsolete>  system script }
  490.     iuCurrentScript                = -2;                            { <obsolete>  current script (for font of grafPort) }
  491. { Negative verbs for KeyScript }
  492.     smKeyNextScript                = -1;                            { Switch to next available script }
  493.     smKeySysScript                = -2;                            { Switch to the system script }
  494.     smKeySwapScript                = -3;                            { Switch to previously-used script }
  495. { New for System 7.0: }
  496.     smKeyNextKybd                = -4;                            { Switch to next keyboard in current keyscript }
  497.  
  498.     smKeySwapKybd                = -5;                            { Switch to previously-used keyboard in current keyscript }
  499.     smKeyDisableKybds            = -6;                            { Disable keyboards not in system or Roman script }
  500.     smKeyEnableKybds            = -7;                            { Re-enable keyboards for all enabled scripts }
  501.     smKeyToggleInline            = -8;                            { Toggle inline input for current keyscript }
  502.     smKeyToggleDirection        = -9;                            { Toggle default line direction (TESysJust) }
  503.     smKeyNextInputMethod        = -10;                            { Switch to next input method in current keyscript }
  504.     smKeySwapInputMethod        = -11;                            { Switch to last-used input method in current keyscript }
  505.     smKeyDisableKybdSwitch        = -12;                            { Disable switching from the current keyboard }
  506.     smKeySetDirLeftRight        = -15;                            { Set default line dir to left-right, align left }
  507.     smKeySetDirRightLeft        = -16;                            { Set default line dir to right-left, align right }
  508.     smKeyRoman                    = -17;                            { Set keyscript to Roman. Does nothing if Roman-only
  509.                                         system, unlike KeyScript(smRoman) which forces
  510.                                         an update to current default Roman keyboard }
  511. { Bits in the smScriptFlags word
  512. (bits above 8 are non-static) }
  513.     smsfIntellCP                = 0;                            {Script has intelligent cut & paste}
  514.     smsfSingByte                = 1;                            {Script has only single bytes}
  515.     smsfNatCase                    = 2;                            {Native chars have upper & lower case}
  516.     smsfContext                    = 3;                            {Script is contextual}
  517.     smsfNoForceFont                = 4;                            {Script will not force characters}
  518.     smsfB0Digits                = 5;                            {Script has alternate digits at B0-B9}
  519.     smsfAutoInit                = 6;                            {Auto initialize the script}
  520.     smsfUnivExt                    = 7;                            {Script is handled by universal extension}
  521.     smsfSynchUnstyledTE            = 8;                            {Script synchronizes for unstyled TE}
  522.     smsfForms                    = 13;                            {Uses contextual forms for letters}
  523.     smsfLigatures                = 14;                            {Uses contextual ligatures}
  524.     smsfReverse                    = 15;                            {Reverses native text, right-left}
  525. { Bits in the smGenFlags long.
  526. First (high-order) byte is set from itlc flags byte. }
  527.     smfShowIcon                    = 31;                            {Show icon even if only one script}
  528.     smfDualCaret                = 30;                            {Use dual caret for mixed direction text}
  529.     smfNameTagEnab                = 29;                            {Reserved for internal use}
  530.     smfUseAssocFontInfo            = 28;                            {Use the associated font info for FontMetrics calls <48>}
  531.  
  532. { Roman script constants 
  533.  The following are here for backward compatibility, but should not be used. 
  534.  This information should be obtained using GetScript. }
  535.     romanSysFond                = $3FFF;                        {system font id number}
  536.     romanAppFond                = 3;                            {application font id number}
  537.     romanFlags                    = $0007;                        {roman settings}
  538. { Script Manager font equates. }
  539.     smFondStart                    = $4000;                        {start from 16K}
  540.     smFondEnd                    = $C000;                        {past end of range at 48K}
  541. { Miscellaneous font equates. }
  542.     smUprHalfCharSet            = $80;                            {first char code in top half of std char set}
  543. { Character Set Extensions }
  544.     diaeresisUprY                = $D9;
  545.     fraction                    = $DA;
  546.     intlCurrency                = $DB;
  547.     leftSingGuillemet            = $DC;
  548.     rightSingGuillemet            = $DD;
  549.     fiLigature                    = $DE;
  550.     flLigature                    = $DF;
  551.     dblDagger                    = $E0;
  552.     centeredDot                    = $E1;
  553.     baseSingQuote                = $E2;
  554.     baseDblQuote                = $E3;
  555.     perThousand                    = $E4;
  556.     circumflexUprA                = $E5;
  557.  
  558.     circumflexUprE                = $E6;
  559.     acuteUprA                    = $E7;
  560.     diaeresisUprE                = $E8;
  561.     graveUprE                    = $E9;
  562.     acuteUprI                    = $EA;
  563.     circumflexUprI                = $EB;
  564.     diaeresisUprI                = $EC;
  565.     graveUprI                    = $ED;
  566.     acuteUprO                    = $EE;
  567.     circumflexUprO                = $EF;
  568.     appleLogo                    = $F0;
  569.     graveUprO                    = $F1;
  570.     acuteUprU                    = $F2;
  571.     circumflexUprU                = $F3;
  572.     graveUprU                    = $F4;
  573.     dotlessLwrI                    = $F5;
  574.     circumflex                    = $F6;
  575.     tilde                        = $F7;
  576.     macron                        = $F8;
  577.     breveMark                    = $F9;
  578.  
  579.     overDot                        = $FA;
  580.     ringMark                    = $FB;
  581.     cedilla                        = $FC;
  582.     doubleAcute                    = $FD;
  583.     ogonek                        = $FE;
  584.     hachek                        = $FF;
  585. { TokenType values }
  586.     tokenIntl                    = 4;                            {the itl resource number of the tokenizer}
  587.     tokenEmpty                    = -1;                            {used internally as an empty flag}
  588.  
  589.     tokenUnknown                = 0;                            {chars that do not match a defined token type}
  590.     tokenWhite                    = 1;                            {white space}
  591.     tokenLeftLit                = 2;                            {literal begin}
  592.     tokenRightLit                = 3;                            {literal end}
  593.     tokenAlpha                    = 4;                            {alphabetic}
  594.     tokenNumeric                = 5;                            {numeric}
  595.     tokenNewLine                = 6;                            {new line}
  596.     tokenLeftComment            = 7;                            {open comment}
  597.     tokenRightComment            = 8;                            {close comment}
  598.     tokenLiteral                = 9;                            {literal}
  599.     tokenEscape                    = 10;                            {character escape (e.g. '\' in "\n", "\t")}
  600.     tokenAltNum                    = 11;                            {alternate number (e.g. $B0-B9 in Arabic,Hebrew)}
  601.     tokenRealNum                = 12;                            {real number}
  602.     tokenAltReal                = 13;                            {alternate real number}
  603.     tokenReserve1                = 14;                            {reserved}
  604.     tokenReserve2                = 15;                            {reserved}
  605.     tokenLeftParen                = 16;                            {open parenthesis}
  606.     tokenRightParen                = 17;                            {close parenthesis}
  607.     tokenLeftBracket            = 18;                            {open square bracket}
  608.     tokenRightBracket            = 19;                            {close square bracket}
  609.  
  610.     tokenLeftCurly                = 20;                            {open curly bracket}
  611.     tokenRightCurly                = 21;                            {close curly bracket}
  612.     tokenLeftEnclose            = 22;                            {open guillemet}
  613.     tokenRightEnclose            = 23;                            {close guillemet}
  614.     tokenPlus                    = 24;
  615.     tokenMinus                    = 25;
  616.     tokenAsterisk                = 26;                            {times/multiply}
  617.     tokenDivide                    = 27;
  618.     tokenPlusMinus                = 28;                            {plus or minus symbol}
  619.     tokenSlash                    = 29;
  620.     tokenBackSlash                = 30;
  621.     tokenLess                    = 31;                            {less than symbol}
  622.     tokenGreat                    = 32;                            {greater than symbol}
  623.     tokenEqual                    = 33;
  624.     tokenLessEqual2                = 34;                            {less than or equal, 2 characters (e.g. <=)}
  625.     tokenLessEqual1                = 35;                            {less than or equal, 1 character}
  626.     tokenGreatEqual2            = 36;                            {greater than or equal, 2 characters (e.g. >=)}
  627.     tokenGreatEqual1            = 37;                            {greater than or equal, 1 character}
  628.     token2Equal                    = 38;                            {double equal (e.g. ==)}
  629.     tokenColonEqual                = 39;                            {colon equal}
  630.  
  631.     tokenNotEqual                = 40;                            {not equal, 1 character}
  632.     tokenLessGreat                = 41;                            {less/greater, Pascal not equal (e.g. <>)}
  633.     tokenExclamEqual            = 42;                            {exclamation equal, C not equal (e.g. !=)}
  634.     tokenExclam                    = 43;                            {exclamation point}
  635.     tokenTilde                    = 44;                            {centered tilde}
  636.     tokenComma                    = 45;
  637.     tokenPeriod                    = 46;
  638.     tokenLeft2Quote                = 47;                            {open double quote}
  639.     tokenRight2Quote            = 48;                            {close double quote}
  640.     tokenLeft1Quote                = 49;                            {open single quote}
  641.     tokenRight1Quote            = 50;                            {close single quote}
  642.     token2Quote                    = 51;                            {double quote}
  643.     token1Quote                    = 52;                            {single quote}
  644.     tokenSemicolon                = 53;
  645.     tokenPercent                = 54;
  646.     tokenCaret                    = 55;
  647.     tokenUnderline                = 56;
  648.     tokenAmpersand                = 57;
  649.     tokenAtSign                    = 58;
  650.     tokenBar                    = 59;                            {vertical bar}
  651.  
  652.     tokenQuestion                = 60;
  653.     tokenPi                        = 61;                            {lower-case pi}
  654.     tokenRoot                    = 62;                            {square root symbol}
  655.     tokenSigma                    = 63;                            {capital sigma}
  656.     tokenIntegral                = 64;                            {integral sign}
  657.     tokenMicro                    = 65;
  658.     tokenCapPi                    = 66;                            {capital pi}
  659.     tokenInfinity                = 67;
  660.     tokenColon                    = 68;
  661.     tokenHash                    = 69;                            {e.g. #}
  662.     tokenDollar                    = 70;
  663.     tokenNoBreakSpace            = 71;                            {non-breaking space}
  664.     tokenFraction                = 72;
  665.     tokenIntlCurrency            = 73;
  666.     tokenLeftSingGuillemet        = 74;
  667.     tokenRightSingGuillemet        = 75;
  668.     tokenPerThousand            = 76;
  669.     tokenEllipsis                = 77;
  670.     tokenCenterDot                = 78;
  671.     tokenNil                    = 127;
  672.  
  673.     delimPad                    = -2;
  674. { obsolete, misspelled token names kept for backward compatibility }
  675.     tokenTilda                    = 44;
  676.     tokenCarat                    = 55;
  677.  
  678. { Table selectors for GetItlTable }
  679.     smWordSelectTable            = 0;                            { get word select break table from 'itl2' }
  680.     smWordWrapTable                = 1;                            { get word wrap break table from 'itl2' }
  681.     smNumberPartsTable            = 2;                            { get default number parts table from 'itl4' }
  682.     smUnTokenTable                = 3;                            { get unToken table from 'itl4' }
  683.     smWhiteSpaceList            = 4;                            { get white space list from 'itl4' }
  684.     iuWordSelectTable            = 0;                            { <obsolete>  get word select break table from 'itl2' }
  685.     iuWordWrapTable                = 1;                            { <obsolete>  get word wrap break table from 'itl2' }
  686.     iuNumberPartsTable            = 2;                            { <obsolete>  get default number parts table from 'itl4' }
  687.     iuUnTokenTable                = 3;                            { <obsolete>  get unToken table from 'itl4' }
  688.     iuWhiteSpaceList            = 4;                            { <obsolete>  get white space list from 'itl4' }
  689.  
  690. { end of stuff moved from Packages.h }
  691.     tokenOK                        = 0;                            { TokenResults }
  692.     tokenOverflow                = 1;                            { TokenResults }
  693.     stringOverflow                = 2;                            { TokenResults }
  694.     badDelim                    = 3;                            { TokenResults }
  695.     badEnding                    = 4;                            { TokenResults }
  696.     crash                        = 5;                            { TokenResults }
  697.  
  698.     
  699. TYPE
  700. TokenResults = SInt8;
  701.  
  702.     CharByteTable = PACKED ARRAY [0..255] OF CHAR;
  703.  
  704.     TokenType = INTEGER;
  705.  
  706.     DelimType = ARRAY [0..1] OF TokenType;
  707.  
  708.     CommentType = ARRAY [0..3] OF TokenType;
  709.  
  710.     TokenRec = RECORD
  711.         theToken:                TokenType;
  712.         position:                Ptr;                                    {pointer into original source}
  713.         length:                    LONGINT;                                {length of text in original source}
  714.         stringPosition:            StringPtr;                                {Pascal/C string copy of identifier}
  715.     END;
  716.     TokenRecPtr = ^TokenRec;
  717.  
  718.     TokenBlock = RECORD
  719.         source:                    Ptr;                                    {pointer to stream of characters}
  720.         sourceLength:            LONGINT;                                {length of source stream}
  721.         tokenList:                Ptr;                                    {pointer to array of tokens}
  722.         tokenLength:            LONGINT;                                {maximum length of TokenList}
  723.         tokenCount:                LONGINT;                                {number tokens generated by tokenizer}
  724.         stringList:                Ptr;                                    {pointer to stream of identifiers}
  725.         stringLength:            LONGINT;                                {length of string list}
  726.         stringCount:            LONGINT;                                {number of bytes currently used}
  727.         doString:                BOOLEAN;                                {make strings & put into StringList}
  728.         doAppend:                BOOLEAN;                                {append to TokenList rather than replace}
  729.         doAlphanumeric:            BOOLEAN;                                {identifiers may include numeric}
  730.         doNest:                    BOOLEAN;                                {do comments nest?}
  731.         leftDelims:                ARRAY [0..1] OF TokenType;
  732.         rightDelims:            ARRAY [0..1] OF TokenType;
  733.         leftComment:            ARRAY [0..3] OF TokenType;
  734.         rightComment:            ARRAY [0..3] OF TokenType;
  735.         escapeCode:                TokenType;                                {escape symbol code}
  736.         decimalCode:            TokenType;
  737.         itlResource:            Handle;                                    {handle to itl4 resource of current script}
  738.         reserved:                ARRAY [0..7] OF LONGINT;                {must be zero!}
  739.     END;
  740.     TokenBlockPtr = ^TokenBlock;
  741.  
  742. FUNCTION GetSysDirection : INTEGER;
  743.     {$IFC NOT CFMSYSTEMCALLS}
  744.     INLINE $3EB8, $0BAC;            { MOVE.W $0BAC,(SP) }
  745.     {$ENDC}
  746.  
  747. PROCEDURE SetSysDirection( value: INTEGER );
  748.     {$IFC NOT CFMSYSTEMCALLS}
  749.     INLINE $31DF, $0BAC;            { MOVE.W (SP)+,$0BAC }
  750.     {$ENDC}
  751.  
  752. FUNCTION FontScript: INTEGER;
  753.     {$IFC NOT GENERATINGCFM}
  754.     INLINE $2F3C, $8200, $0000, $A8B5;
  755.     {$ENDC}
  756. FUNCTION IntlScript: INTEGER;
  757.     {$IFC NOT GENERATINGCFM}
  758.     INLINE $2F3C, $8200, $0002, $A8B5;
  759.     {$ENDC}
  760. PROCEDURE KeyScript(code: INTEGER);
  761.     {$IFC NOT GENERATINGCFM}
  762.     INLINE $2F3C, $8002, $0004, $A8B5;
  763.     {$ENDC}
  764. FUNCTION CharByte(textBuf: Ptr; textOffset: INTEGER): INTEGER;
  765.     {$IFC NOT GENERATINGCFM}
  766.     INLINE $2F3C, $8206, $0010, $A8B5;
  767.     {$ENDC}
  768. FUNCTION CharType(textBuf: Ptr; textOffset: INTEGER): INTEGER;
  769.     {$IFC NOT GENERATINGCFM}
  770.     INLINE $2F3C, $8206, $0012, $A8B5;
  771.     {$ENDC}
  772. FUNCTION IsCmdChar(eventRecord: EventRecord; test: INTEGER): BOOLEAN;
  773.     {$IFC NOT GENERATINGCFM}
  774.     INLINE $2F3C, $8206, $FFD0, $A8B5;
  775.     {$ENDC}
  776. FUNCTION Transliterate(srcHandle: Handle; dstHandle: Handle; target: INTEGER; srcMask: LONGINT): OSErr;
  777.     {$IFC NOT GENERATINGCFM}
  778.     INLINE $2F3C, $820E, $0018, $A8B5;
  779.     {$ENDC}
  780. FUNCTION ParseTable(VAR table: CharByteTable): BOOLEAN;
  781.     {$IFC NOT GENERATINGCFM}
  782.     INLINE $2F3C, $8204, $0022, $A8B5;
  783.     {$ENDC}
  784. FUNCTION IntlTokenize(tokenParam: TokenBlockPtr): TokenResults;
  785.     {$IFC NOT GENERATINGCFM}
  786.     INLINE $2F3C, $8204, $FFFA, $A8B5;
  787.     {$ENDC}
  788. FUNCTION FontToScript(fontNumber: INTEGER): INTEGER;
  789.     {$IFC NOT GENERATINGCFM}
  790.     INLINE $2F3C, $8202, $0006, $A8B5;
  791.     {$ENDC}
  792. FUNCTION GetScriptManagerVariable(selector: INTEGER): LONGINT;
  793.     {$IFC NOT GENERATINGCFM}
  794.     INLINE $2F3C, $8402, $0008, $A8B5;
  795.     {$ENDC}
  796. FUNCTION SetScriptManagerVariable(selector: INTEGER; param: LONGINT): OSErr;
  797.     {$IFC NOT GENERATINGCFM}
  798.     INLINE $2F3C, $8206, $000A, $A8B5;
  799.     {$ENDC}
  800. FUNCTION GetScriptVariable(script: INTEGER; selector: INTEGER): LONGINT;
  801.     {$IFC NOT GENERATINGCFM}
  802.     INLINE $2F3C, $8404, $000C, $A8B5;
  803.     {$ENDC}
  804. FUNCTION GetScript(script: INTEGER; verb: INTEGER): LONGINT;
  805.     {$IFC NOT GENERATINGCFM}
  806.     INLINE $2F3C, $8404, $000C, $A8B5;
  807.     {$ENDC}
  808. FUNCTION SetScriptVariable(script: INTEGER; selector: INTEGER; param: LONGINT): OSErr;
  809.     {$IFC NOT GENERATINGCFM}
  810.     INLINE $2F3C, $8208, $000E, $A8B5;
  811.     {$ENDC}
  812. FUNCTION SetScript(script: INTEGER; verb: INTEGER; param: LONGINT): OSErr;
  813.     {$IFC NOT GENERATINGCFM}
  814.     INLINE $2F3C, $8208, $000E, $A8B5;
  815.     {$ENDC}
  816. {  New for 7.1  }
  817. FUNCTION GetScriptUtilityAddress(selector: INTEGER; Before: BOOLEAN; script: ScriptCode): UniversalProcPtr;
  818.     {$IFC NOT GENERATINGCFM}
  819.     INLINE $2F3C, $C404, $0038, $A8B5;
  820.     {$ENDC}
  821. PROCEDURE SetScriptUtilityAddress(selector: INTEGER; Before: BOOLEAN; routineAddr: UniversalProcPtr; script: ScriptCode);
  822.     {$IFC NOT GENERATINGCFM}
  823.     INLINE $2F3C, $C008, $003A, $A8B5;
  824.     {$ENDC}
  825. FUNCTION GetScriptQDPatchAddress(trapNum: INTEGER; Before: BOOLEAN; forPrinting: BOOLEAN; script: ScriptCode): UniversalProcPtr;
  826.     {$IFC NOT GENERATINGCFM}
  827.     INLINE $2F3C, $C406, $003C, $A8B5;
  828.     {$ENDC}
  829. PROCEDURE SetScriptQDPatchAddress(trapNum: INTEGER; Before: BOOLEAN; forPrinting: BOOLEAN; routineAddr: UniversalProcPtr; script: ScriptCode);
  830.     {$IFC NOT GENERATINGCFM}
  831.     INLINE $2F3C, $C00A, $003E, $A8B5;
  832.     {$ENDC}
  833. FUNCTION CharacterByteType(textBuf: Ptr; textOffset: INTEGER; script: ScriptCode): INTEGER;
  834.     {$IFC NOT GENERATINGCFM}
  835.     INLINE $2F3C, $C206, $0010, $A8B5;
  836.     {$ENDC}
  837. FUNCTION CharacterType(textBuf: Ptr; textOffset: INTEGER; script: ScriptCode): INTEGER;
  838.     {$IFC NOT GENERATINGCFM}
  839.     INLINE $2F3C, $C206, $0012, $A8B5;
  840.     {$ENDC}
  841. FUNCTION TransliterateText(srcHandle: Handle; dstHandle: Handle; target: INTEGER; srcMask: LONGINT; script: ScriptCode): OSErr;
  842.     {$IFC NOT GENERATINGCFM}
  843.     INLINE $2F3C, $C20E, $0018, $A8B5;
  844.     {$ENDC}
  845. FUNCTION FillParseTable(VAR table: CharByteTable; script: ScriptCode): BOOLEAN;
  846.     {$IFC NOT GENERATINGCFM}
  847.     INLINE $2F3C, $C204, $0022, $A8B5;
  848.     {$ENDC}
  849. { Moved from Packages.h }
  850. FUNCTION GetIntlResource(theID: INTEGER): Intl0Hndl;
  851.     {$IFC NOT GENERATINGCFM}
  852.     INLINE $3F3C, $0006, $A9ED;
  853.     {$ENDC}
  854. PROCEDURE SetIntlResource(refNum: INTEGER; theID: INTEGER; intlHandle: Intl0Hndl);
  855.     {$IFC NOT GENERATINGCFM}
  856.     INLINE $3F3C, $0008, $A9ED;
  857.     {$ENDC}
  858. PROCEDURE ClearIntlResourceCache;
  859.     {$IFC NOT GENERATINGCFM}
  860.     INLINE $3F3C, $0018, $A9ED;
  861.     {$ENDC}
  862. PROCEDURE GetIntlResourceTable(script: ScriptCode; tableCode: INTEGER; VAR itlHandle: Intl0Hndl; VAR offset: LONGINT; VAR length: LONGINT);
  863.     {$IFC NOT GENERATINGCFM}
  864.     INLINE $3F3C, $0024, $A9ED;
  865.     {$ENDC}
  866. {$IFC OLDROUTINENAMES }
  867. PROCEDURE SetSysJust(newDirection: INTEGER);
  868.     {$IFC NOT GENERATINGCFM}
  869.     INLINE $31DF, $0BAC;
  870.     {$ENDC}
  871. FUNCTION GetSysJust: INTEGER;
  872.     {$IFC NOT GENERATINGCFM}
  873.     INLINE $3EB8, $0BAC;
  874.     {$ENDC}
  875. FUNCTION Font2Script(fontNumber: INTEGER): INTEGER;
  876.     {$IFC NOT GENERATINGCFM}
  877.     INLINE $2F3C, $8202, $0006, $A8B5;
  878.     {$ENDC}
  879. FUNCTION GetEnvirons(selector: INTEGER): LONGINT;
  880.     {$IFC NOT GENERATINGCFM}
  881.     INLINE $2F3C, $8402, $0008, $A8B5;
  882.     {$ENDC}
  883. FUNCTION SetEnvirons(selector: INTEGER; param: LONGINT): OSErr;
  884.     {$IFC NOT GENERATINGCFM}
  885.     INLINE $2F3C, $8206, $000A, $A8B5;
  886.     {$ENDC}
  887. FUNCTION IUGetIntl(theID: INTEGER): Intl0Hndl;
  888.     {$IFC NOT GENERATINGCFM}
  889.     INLINE $3F3C, $0006, $A9ED;
  890.     {$ENDC}
  891. PROCEDURE IUSetIntl(refNum: INTEGER; theID: INTEGER; intlHandle: Intl0Hndl);
  892.     {$IFC NOT GENERATINGCFM}
  893.     INLINE $3F3C, $0008, $A9ED;
  894.     {$ENDC}
  895. PROCEDURE IUClearCache;
  896.     {$IFC NOT GENERATINGCFM}
  897.     INLINE $3F3C, $0018, $A9ED;
  898.     {$ENDC}
  899. PROCEDURE IUGetItlTable(script: ScriptCode; tableCode: INTEGER; VAR itlHandle: Intl0Hndl; VAR offset: LONGINT; VAR length: LONGINT);
  900.     {$IFC NOT GENERATINGCFM}
  901.     INLINE $3F3C, $0024, $A9ED;
  902.     {$ENDC}
  903. {$ENDC}
  904.  
  905. {$ALIGN RESET}
  906. {$POP}
  907.  
  908. {$SETC UsingIncludes := ScriptIncludes}
  909.  
  910. {$ENDC} {__SCRIPT__}
  911.  
  912. {$IFC NOT UsingIncludes}
  913.  END.
  914. {$ENDC}
  915.